<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="css/user/public.css">
    <link rel="stylesheet" href="css/user/index.css">
    <script language="javascript" type="text/javascript" src="js/user/jquery-1.8.3.min.js"></script>
    <script language="javascript" type="text/javascript" src="js/user/index.js"></script>
    <title>登录</title>
</head>
<body>
<!--top-->
<div class="index_top_link">
    <div class="index_top_link_box">
        <p>专注做好投融资平台</p>
    </div>
</div>
<div class="index_logo">
    <div class="index_logo_box">
        <div class="index_logo_box_left">
            <a href="index.html"><img src="images/logo.png" class="index_logo_box_left_logo"></a>
            <img src="images/login.png">
        </div>
    </div>
</div>
<!--top-->
<!--main-->
<div class="index_main">
    <div class="index_main_box">
        <!--right-->
        <div class="login_main_right">
            <div class="login_main_right_left">
                <img src="images/login_03.png" >
            </div>
            <div class="login_main_right_right">
                <h1>帐户登录</h1>
                <form id="login_box">
                    <p><img src="images/login_06.png" class="login_icon"><input type="text" placeholder="请输入手机号码" id="login_phone"/></p>
                    <p><img src="images/login_10.png" class="login_icon"><input type="password" placeholder="请输入密码" id="login_password"/></p>
                    <p><input type="text" placeholder="请输入验证码" class="login_inp_short" id="login_yzm"/><img src="lt/verifyCode.png" class="login_yzm"></p>
                    <p><input id="login" type="button" value="马上登录" /></p>
                </form>
                <p class="login_forget_box"><a href="#" class="login_forget">忘记密码？</a><a href="register.html" class="login_free">免费注册</a></p>
            </div>
        </div>
        <!--right-->
    </div>
<div class="cleardiv"></div>
</div>
<!--main-->
<!--footer-->
<div class="index_footer">
    <div class="index_footer_box">
        <div class="index_footer_box_left">
            <ul class="index_footer_box_nav">
                <li><a href="about_us.html" target="_blank">关于我们</a></li>
                <li><a href="#" target="_blank">帮助中心</a></li>
                <li><a href="#" target="_blank">合作伙伴</a></li>
                <li><a href="dynamic.html" target="_blank">新闻动态</a></li>
                <li><a href="#" target="_blank">服务条款</a></li>
                <li><a href="#" target="_blank">法律法规</a></li>
                <li><a href="#" target="_blank">风险揭示</a></li>
                <li><a href="" style="border:none;" target="_blank">隐私保护</a></li>
                <div class="cleardiv"></div>
            </ul>
            <ul class="index_footer_box_nav1">
                <li><a target="_blank">2015 领投 All rights reserved</a></li>
                <li><a target="_blank">杭州领投服务有限公司</a></li>
                <li><a style="border:none;">浙ICP备11455162号-6</a></li>
                <div class="cleardiv"></div>
            </ul>
        </div>

        <p class="index_wei"><img src="images/weixin.png" ></p>
    </div>
</div>
<!--footer-->
<script>

    $(document).ready(function(){
        $('#login').click(function(){
            var login_phone=$("#login_phone").val();
            var login_password=$("#login_password").val();
            var login_yzm=$("#login_yzm").val();
//            console.log('yes');
            $.ajax({
                url:"lt/user/login",
                data:{phone:login_phone,authCode:login_yzm,password:login_password},
                type:"post",

                success:function(data){
                    if(data.result==1){
                        alert(data.resultMsg);
                    }else{
                        //$('#login_box').submit();
                        window.location="user_index.html";
                    }
                }

            });


        });

    })

</script>

</body>
</html>